package io.github.eiot.json.serializer;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

/**
 * created by wang007 on 2025/10/9
 */
public class IgnoringSerializer extends JsonSerializer<Object> {

    public static final IgnoringSerializer INSTANCE = new IgnoringSerializer();

    @Override
    public void serialize(Object value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
        gen.writeNull();
    }
}
